package com.gp.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 *
 * @TableName tb_common_customer
 */
public class Customer implements Serializable {
    /**
     *
     */
    private Integer id;

    /**
     * 会员ID
     */
    private Integer memberId;

    /**
     * 名字
     */
    private String cusName;

    /**
     * 手机
     */
    private String phoneNum;

    /**
     * 证件类型(身份证)
     */
    private String credentialsType;

    /**
     * 身份证号
     */
    private String idNumber;

    /**
     * 领取驾照时间（年月）
     */
    private Date getlicenseTime;

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    public Integer getId() {
        return id;
    }

    /**
     *
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 会员ID
     */
    public Integer getMemberId() {
        return memberId;
    }

    /**
     * 会员ID
     */
    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    /**
     * 名字
     */
    public String getCusName() {
        return cusName;
    }

    /**
     * 名字
     */
    public void setCusName(String cusName) {
        this.cusName = cusName;
    }

    /**
     * 手机
     */
    public String getPhoneNum() {
        return phoneNum;
    }

    /**
     * 手机
     */
    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    /**
     * 证件类型(身份证)
     */
    public String getCredentialsType() {
        return credentialsType;
    }

    /**
     * 证件类型(身份证)
     */
    public void setCredentialsType(String credentialsType) {
        this.credentialsType = credentialsType;
    }

    /**
     * 身份证号
     */
    public String getIdNumber() {
        return idNumber;
    }

    /**
     * 身份证号
     */
    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    /**
     * 领取驾照时间（年月）
     */
    public Date getGetlicenseTime() {
        return getlicenseTime;
    }

    /**
     * 领取驾照时间（年月）
     */
    public void setGetlicenseTime(Date getlicenseTime) {
        this.getlicenseTime = getlicenseTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Customer other = (Customer) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                && (this.getMemberId() == null ? other.getMemberId() == null : this.getMemberId().equals(other.getMemberId()))
                && (this.getCusName() == null ? other.getCusName() == null : this.getCusName().equals(other.getCusName()))
                && (this.getPhoneNum() == null ? other.getPhoneNum() == null : this.getPhoneNum().equals(other.getPhoneNum()))
                && (this.getCredentialsType() == null ? other.getCredentialsType() == null : this.getCredentialsType().equals(other.getCredentialsType()))
                && (this.getIdNumber() == null ? other.getIdNumber() == null : this.getIdNumber().equals(other.getIdNumber()))
                && (this.getGetlicenseTime() == null ? other.getGetlicenseTime() == null : this.getGetlicenseTime().equals(other.getGetlicenseTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMemberId() == null) ? 0 : getMemberId().hashCode());
        result = prime * result + ((getCusName() == null) ? 0 : getCusName().hashCode());
        result = prime * result + ((getPhoneNum() == null) ? 0 : getPhoneNum().hashCode());
        result = prime * result + ((getCredentialsType() == null) ? 0 : getCredentialsType().hashCode());
        result = prime * result + ((getIdNumber() == null) ? 0 : getIdNumber().hashCode());
        result = prime * result + ((getGetlicenseTime() == null) ? 0 : getGetlicenseTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", memberId=").append(memberId);
        sb.append(", cusName=").append(cusName);
        sb.append(", phoneNum=").append(phoneNum);
        sb.append(", credentialsType=").append(credentialsType);
        sb.append(", idNumber=").append(idNumber);
        sb.append(", getlicenseTime=").append(getlicenseTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
